#!/bin/bash
# @Author: Ryanjie
# @Date:   2019-12-15 15:35:20
# @Last Modified by:   Ryanjie
# @Last Modified time: 2019-12-15 16:24:52
#!/usr/bin/env sh
set -e
UPDATE=$(date "+%Y-%m-%d %H:%M:%S")

sudo npm run build

cd docs/.vuepress/dist

git init
git add -A
git commit -m ":rocket: Site updated: { $UPDATE }"
git push -f git@gitee.com:ryanjiena/bimg.git master:gt-pages

cd -